package com.gzhryc.shared_device.common.device.dao.db;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.PrimaryKey;
import com.gzhryc.jdbc.annotaion.Table;

import java.util.Date;

@Table(name="device_type_version")
public class DeviceTypeVersion {

    @PrimaryKey
    @Column(name = "type_td", notNull = true, note = "设备类型ID")
    protected String typeId;

    @PrimaryKey
    @Column(name="version_number",notNull = true, note = "版本号")
    protected String versionNumber;

    @Column(name = "package_path",notNull = true, length = 255, note = "版本号")
    protected String packagePath;

    @Column(name = "package_crc",notNull = true,  length = 16, note = "升级包CRC效验")
    protected String packageCRC;

    @Column(name = "update_date", autoUpdateTime = true, note = "最后修改时间")
    protected Date updateDate;

    @Column(name = "create_date")
    protected Date createDate;

    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }

    public String getVersionNumber() {
        return versionNumber;
    }

    public void setVersionNumber(String versionNumber) {
        this.versionNumber = versionNumber;
    }

    public String getPackagePath() {
        return packagePath;
    }

    public void setPackagePath(String packagePath) {
        this.packagePath = packagePath;
    }

    public String getPackageCRC() {
        return packageCRC;
    }

    public void setPackageCRC(String packageCRC) {
        this.packageCRC = packageCRC;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
